home *** CD-ROM | disk | FTP | other *** search
/ Komputer for Alle 2002 #4 / K-CD-4-2002.ISO / Empire Earth / EEDemo.exe / Disk1 / data.ssa / unit ai scripts_airport.tai < prev    next >
Encoding:
Text File  |  2001-09-29  |  1.0 KB  |  53 lines

  1. //
  2. // Airport AI File
  3. //
  4. // Behaviors:
  5. //
  6. //        Train units, research technology, open airport and launch planes at regular intervals
  7. //
  8. // Default action for new airport units:            Idle
  9. // Action for player-initiated Attack order:        AirportOpen (goal is enemy unit to attack)
  10. // Action for player-initiated Train order:            TrainUnit
  11. // Action for player-initiated Research order:        ResearchTechnology
  12. //
  13. //    Notes:
  14. //
  15. //
  16. //    Known Problems:
  17. //
  18. //
  19.  
  20. Idle
  21. {
  22.     anyof(EnemyUnitSpotted,AirplaneAvailableToLaunch) true(AirportOpen)
  23. }
  24.  
  25. AirportOpen
  26. {
  27.     anyof(EnemyUnitDestroyed,UnitNotOnMap) true(SearchForSecondaryTarget)
  28.     AirplaneAvailableToLaunch true(WaitForTakeoffClearance)
  29. }
  30.  
  31. WaitForTakeoffClearance
  32. {
  33.     TakeoffClearanceGranted true(LaunchNextAirplane)
  34.     NoLaunchRequests true(AirportOpen)
  35. }
  36.  
  37. LaunchNextAirplane
  38. {
  39.     LaunchedAirplane true(AirportOpen)
  40. }
  41.  
  42. SearchForSecondaryTarget
  43. {
  44.     SecondaryTargetFound true(AirportOpen) false(Idle)
  45. }
  46.  
  47. PrepareToMove
  48. {
  49.     AlwaysTrue true(Idle) false(Idle)
  50. }
  51.  
  52. #include("Generic Death.tai")
  53.